package com.zboin.ucenter.service;

import com.zboin.ucenter.model.Role;

import java.util.List;

/**
 * @author zhboom
 * @date 2025/8/4 23:18
 */
public interface RoleService {

    Role getRoleById(Integer roleId);

    Role getRoleByName(String roleName);

    List<Role> getRoleByGroupId(Integer groupId);

    List<Role> getRoleByUserId(Integer userId);

    int addRole(Role role);

    int updateRole(Role role);

    int deleteRole(Integer roleId);
}
